package com.chainshop.common.core.domain.pojo;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.chainshop.common.annotation.Excel;
import com.chainshop.common.core.domain.BaseEntity;

/**
 * 支出列表对象 expense_records
 * 
 * @author hmy
 * @date 2024-08-14
 */
public class ExpenseRecords extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 支出记录ID */
    private Long id;

    /** 支出类型 */
    @Excel(name = "支出类型")
    private String expenditureType;

    /** 金额 */
    @Excel(name = "金额")
    private BigDecimal amount;

    /** 支出申请ID */
    @Excel(name = "支出申请ID")
    private Long applicationId;

    /** 支出日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "支出日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date expenditureDate;

    /** 店铺ID */
    @Excel(name = "店铺ID")
    private Integer storeId;


    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setExpenditureType(String expenditureType) 
    {
        this.expenditureType = expenditureType;
    }

    public String getExpenditureType() 
    {
        return expenditureType;
    }
    public void setAmount(BigDecimal amount) 
    {
        this.amount = amount;
    }

    public BigDecimal getAmount() 
    {
        return amount;
    }
    public void setApplicationId(Long applicationId) 
    {
        this.applicationId = applicationId;
    }

    public Long getApplicationId() 
    {
        return applicationId;
    }
    public void setExpenditureDate(Date expenditureDate) 
    {
        this.expenditureDate = expenditureDate;
    }

    public Date getExpenditureDate() 
    {
        return expenditureDate;
    }
    public void setStoreId(Integer storeId) 
    {
        this.storeId = storeId;
    }

    public Integer getStoreId() 
    {
        return storeId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("expenditureType", getExpenditureType())
            .append("amount", getAmount())
            .append("applicationId", getApplicationId())
            .append("expenditureDate", getExpenditureDate())
            .append("storeId", getStoreId())
            .toString();
    }
}
